/*
 *  This file is part of the SIRIUS libraries for analyzing MS and MS/MS data
 *
 *  Copyright (C) 2024 Bright Giant GmbH
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along with SIRIUS.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 *  https://openapi-generator.tech
 *  Do not edit the class manually.
 */


package io.sirius.ms.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * LipidAnnotation
 */
@JsonPropertyOrder({
  LipidAnnotation.JSON_PROPERTY_LIPID_SPECIES,
  LipidAnnotation.JSON_PROPERTY_LIPID_MAPS_ID,
  LipidAnnotation.JSON_PROPERTY_LIPID_CLASS_NAME,
  LipidAnnotation.JSON_PROPERTY_HYPOTHETICAL_STRUCTURE,
  LipidAnnotation.JSON_PROPERTY_CHAINS_UNKNOWN
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0")
public class LipidAnnotation {
  public static final String JSON_PROPERTY_LIPID_SPECIES = "lipidSpecies";
  @jakarta.annotation.Nullable
  private String lipidSpecies;

  public static final String JSON_PROPERTY_LIPID_MAPS_ID = "lipidMapsId";
  @jakarta.annotation.Nullable
  private String lipidMapsId;

  public static final String JSON_PROPERTY_LIPID_CLASS_NAME = "lipidClassName";
  @jakarta.annotation.Nullable
  private String lipidClassName;

  public static final String JSON_PROPERTY_HYPOTHETICAL_STRUCTURE = "hypotheticalStructure";
  @jakarta.annotation.Nullable
  private String hypotheticalStructure;

  public static final String JSON_PROPERTY_CHAINS_UNKNOWN = "chainsUnknown";
  @jakarta.annotation.Nullable
  private Boolean chainsUnknown;

  public LipidAnnotation() {
  }

  public LipidAnnotation lipidSpecies(@jakarta.annotation.Nullable String lipidSpecies) {
    
    this.lipidSpecies = lipidSpecies;
    return this;
  }

  /**
   * Predicted lipid species in LIPID MAPS notation.  NULL if not classified as lipid.
   * @return lipidSpecies
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LIPID_SPECIES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getLipidSpecies() {
    return lipidSpecies;
  }


  @JsonProperty(JSON_PROPERTY_LIPID_SPECIES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLipidSpecies(@jakarta.annotation.Nullable String lipidSpecies) {
    this.lipidSpecies = lipidSpecies;
  }

  public LipidAnnotation lipidMapsId(@jakarta.annotation.Nullable String lipidMapsId) {
    
    this.lipidMapsId = lipidMapsId;
    return this;
  }

  /**
   * LIPID MAPS id of the predicted lipid class.
   * @return lipidMapsId
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LIPID_MAPS_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getLipidMapsId() {
    return lipidMapsId;
  }


  @JsonProperty(JSON_PROPERTY_LIPID_MAPS_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLipidMapsId(@jakarta.annotation.Nullable String lipidMapsId) {
    this.lipidMapsId = lipidMapsId;
  }

  public LipidAnnotation lipidClassName(@jakarta.annotation.Nullable String lipidClassName) {
    
    this.lipidClassName = lipidClassName;
    return this;
  }

  /**
   * Human-readable name of the predicted lipid class.
   * @return lipidClassName
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LIPID_CLASS_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getLipidClassName() {
    return lipidClassName;
  }


  @JsonProperty(JSON_PROPERTY_LIPID_CLASS_NAME)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLipidClassName(@jakarta.annotation.Nullable String lipidClassName) {
    this.lipidClassName = lipidClassName;
  }

  public LipidAnnotation hypotheticalStructure(@jakarta.annotation.Nullable String hypotheticalStructure) {
    
    this.hypotheticalStructure = hypotheticalStructure;
    return this;
  }

  /**
   * Hypothetical molecular structure of the predicted lipid species as SMILES.  NULL if hypothetical structure not available.
   * @return hypotheticalStructure
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_HYPOTHETICAL_STRUCTURE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getHypotheticalStructure() {
    return hypotheticalStructure;
  }


  @JsonProperty(JSON_PROPERTY_HYPOTHETICAL_STRUCTURE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setHypotheticalStructure(@jakarta.annotation.Nullable String hypotheticalStructure) {
    this.hypotheticalStructure = hypotheticalStructure;
  }

  public LipidAnnotation chainsUnknown(@jakarta.annotation.Nullable Boolean chainsUnknown) {
    
    this.chainsUnknown = chainsUnknown;
    return this;
  }

  /**
   * True of the formula composition of the chains could not be determined from the MS/MS.
   * @return chainsUnknown
   */
  @jakarta.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_CHAINS_UNKNOWN)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean isChainsUnknown() {
    return chainsUnknown;
  }


  @JsonProperty(JSON_PROPERTY_CHAINS_UNKNOWN)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setChainsUnknown(@jakarta.annotation.Nullable Boolean chainsUnknown) {
    this.chainsUnknown = chainsUnknown;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LipidAnnotation lipidAnnotation = (LipidAnnotation) o;
    return Objects.equals(this.lipidSpecies, lipidAnnotation.lipidSpecies) &&
        Objects.equals(this.lipidMapsId, lipidAnnotation.lipidMapsId) &&
        Objects.equals(this.lipidClassName, lipidAnnotation.lipidClassName) &&
        Objects.equals(this.hypotheticalStructure, lipidAnnotation.hypotheticalStructure) &&
        Objects.equals(this.chainsUnknown, lipidAnnotation.chainsUnknown);
  }

  @Override
  public int hashCode() {
    return Objects.hash(lipidSpecies, lipidMapsId, lipidClassName, hypotheticalStructure, chainsUnknown);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LipidAnnotation {\n");
    sb.append("    lipidSpecies: ").append(toIndentedString(lipidSpecies)).append("\n");
    sb.append("    lipidMapsId: ").append(toIndentedString(lipidMapsId)).append("\n");
    sb.append("    lipidClassName: ").append(toIndentedString(lipidClassName)).append("\n");
    sb.append("    hypotheticalStructure: ").append(toIndentedString(hypotheticalStructure)).append("\n");
    sb.append("    chainsUnknown: ").append(toIndentedString(chainsUnknown)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

